<?php
class My_Controller_Action_Helper_Log 
	extends Zend_Controller_Action_Helper_Abstract
{
	
	public function exception ( $e )
	{
		$this->getLog()->log( $e->getMessage(), Zend_Log::ERR, array(
				'request' => $this->getRequest(),
				'exception' => $e
			)
		);
	}
	
	public function error ( $msg )
	{
		$this->getLog()->log( $msg, Zend_Log::ERR, array(
				'request' => $this->getRequest()
			)
		);
	}
	
	public function getLog()
	{
		return Zend_Registry::get("Zend_Log");		
	} 
	
}